package com.imarad.bio.socket.core;


import com.imarad.bio.socket.common.ClientPacket;

/**
 * Copyright2017-2017  AMBITION.All Rights Reserved
 *
 * Comments：
 *
 * @author huh
 *
 *         Time: 2018/2/1
 *
 *         Modified By:
 *         Modified Date:
 *         Why & What is modified:
 * @version 1.0.0
 */
public interface SocketClient {

    /**
     * 停止当前操作线程
     */
    void stop();

    /**
     * 发送数据到服务端
     *
     * @param clientPacket 发送数据包
     */
    void send(ClientPacket clientPacket);

    /**
     * 读取服务端推送数据
     */
    ClientPacket read();
}
